package com.ssm.model;

import java.util.Date;
//用户作品表
public class Work {

	private Integer id;
	//内容
	private String content;
	private Integer user_id;
	//配图1
	private String picture1;
	//发表时间
	private Date create_time;
	//街具类型
	private String street_type;
	//访问次数
	private Integer read_times;
	private String picture2;
	//街具场景
	private String Street_background;
	//街具类型
	private String street_class;
	//街具风格
	private String street_style;
	//素材来源
	private String resource;
	private String title;
	//简介
	private String introduction;
	//状态
	private String status;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getUser_id() {
		return user_id;
	}

	public void setUser_id(Integer userId) {
		user_id = userId;
	}

	public String getPicture1() {
		return picture1;
	}

	public void setPicture1(String picture1) {
		this.picture1 = picture1;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date createTime) {
		create_time = createTime;
	}

	public String getStreet_type() {
		return street_type;
	}

	public void setStreet_type(String streetType) {
		street_type = streetType;
	}

	public Integer getRead_times() {
		return read_times;
	}

	public void setRead_times(Integer readTimes) {
		read_times = readTimes;
	}

	public String getPicture2() {
		return picture2;
	}

	public void setPicture2(String picture2) {
		this.picture2 = picture2;
	}

	public String getStreet_background() {
		return Street_background;
	}

	public void setStreet_background(String streetBackground) {
		Street_background = streetBackground;
	}

	public String getStreet_class() {
		return street_class;
	}

	public void setStreet_class(String streetClass) {
		street_class = streetClass;
	}

	public String getStreet_style() {
		return street_style;
	}

	public void setStreet_style(String streetStyle) {
		street_style = streetStyle;
	}

	public String getResource() {
		return resource;
	}

	public void setResource(String resource) {
		this.resource = resource;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "Work [Street_background=" + Street_background + ", content="
				+ content + ", create_time=" + create_time + ", id=" + id
				+ ", introduction=" + introduction + ", picture1=" + picture1
				+ ", picture2=" + picture2 + ", read_times=" + read_times
				+ ", resource=" + resource + ", status=" + status
				+ ", street_class=" + street_class + ", street_style="
				+ street_style + ", street_type=" + street_type + ", title="
				+ title + ", user_id=" + user_id + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((Street_background == null) ? 0 : Street_background
						.hashCode());
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result
				+ ((create_time == null) ? 0 : create_time.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((introduction == null) ? 0 : introduction.hashCode());
		result = prime * result
				+ ((picture1 == null) ? 0 : picture1.hashCode());
		result = prime * result
				+ ((picture2 == null) ? 0 : picture2.hashCode());
		result = prime * result
				+ ((read_times == null) ? 0 : read_times.hashCode());
		result = prime * result
				+ ((resource == null) ? 0 : resource.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		result = prime * result
				+ ((street_class == null) ? 0 : street_class.hashCode());
		result = prime * result
				+ ((street_style == null) ? 0 : street_style.hashCode());
		result = prime * result
				+ ((street_type == null) ? 0 : street_type.hashCode());
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		result = prime * result + ((user_id == null) ? 0 : user_id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Work other = (Work) obj;
		if (Street_background == null) {
			if (other.Street_background != null)
				return false;
		} else if (!Street_background.equals(other.Street_background))
			return false;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (create_time == null) {
			if (other.create_time != null)
				return false;
		} else if (!create_time.equals(other.create_time))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (introduction == null) {
			if (other.introduction != null)
				return false;
		} else if (!introduction.equals(other.introduction))
			return false;
		if (picture1 == null) {
			if (other.picture1 != null)
				return false;
		} else if (!picture1.equals(other.picture1))
			return false;
		if (picture2 == null) {
			if (other.picture2 != null)
				return false;
		} else if (!picture2.equals(other.picture2))
			return false;
		if (read_times == null) {
			if (other.read_times != null)
				return false;
		} else if (!read_times.equals(other.read_times))
			return false;
		if (resource == null) {
			if (other.resource != null)
				return false;
		} else if (!resource.equals(other.resource))
			return false;
		if (status == null) {
			if (other.status != null)
				return false;
		} else if (!status.equals(other.status))
			return false;
		if (street_class == null) {
			if (other.street_class != null)
				return false;
		} else if (!street_class.equals(other.street_class))
			return false;
		if (street_style == null) {
			if (other.street_style != null)
				return false;
		} else if (!street_style.equals(other.street_style))
			return false;
		if (street_type == null) {
			if (other.street_type != null)
				return false;
		} else if (!street_type.equals(other.street_type))
			return false;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals(other.title))
			return false;
		if (user_id == null) {
			if (other.user_id != null)
				return false;
		} else if (!user_id.equals(other.user_id))
			return false;
		return true;
	}

}
